<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('物资管理')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-goods-depot" th:object="${depot}">
		<input name="goodsId"  th:field="*{goodsId}" type="hidden"  />
		<div class="form-group">
			<label class="col-sm-3 control-label ">数量</label>
			<div class="col-sm-8">
				<input class="form-control" type="number" name="outputAmount" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"/>
			</div>
		</div>
		<input name="goodsId"  th:field="*{stockAmout}" type="hidden"  />

		<div class="form-group">
			<label class="col-sm-3 control-label">领取人</label>
			<div class="col-sm-8">
				<select id="receiver" class="form-control select2-multiple" name="receiver" >
					<option th:each="user:${users}" th:value="${user.userId}" th:text="${user.userName}" th:disabled="${user.status == '1'}"></option>
				</select>

				<!--<input class="form-control" type="text" name="receiver" id="receiver" >-->
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">备注</label>
			<div class="col-sm-8">
				<textarea class="form-control" type="text" name="remark" id="remark" rows="4" > </textarea>
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<script>
	function submitHandler() {
		if ($.validate.form()) {
			$.operate.save(ctx + "system/ncGoods/depot", $('#form-goods-depot').serialize());
		}
	}
</script>
</body>

</html>
